{%  extends 'index.html' %}

{% block page-content %}
{#    <div class="page-header" style="color: #1b6d85">#}
{#        <h1>学员基本信息审核 <small></small></h1>#}
{#    </div>#}
{#    {{ customer_form.as_p }}#}
{##}
{#    <hr/>#}
{#    <div class="page-header" style="color: #1b6d85">#}
{#        <h1>缴费界面 <small></small></h1>#}
{#    </div>#}
{#    <div id="content">#}
{#        <form class="form-horizontal col-lg-7" role="form" method="post">{% csrf_token %}#}
{#            <span style="color: red">{{ payment_form.errors }}</span>#}
{#              <div class="form-group">#}
{#                <label  class="col-sm-2 control-label">客户</label>#}
{#                <div class="col-sm-10">#}
{#                    {{ enroll_obj.customer.qq }}  ---    {{ enroll_obj.customer.name }}#}
{#                </div>#}
{#              </div>#}
{#            {% for field in payment_form %}#}
{##}
{#              <div class="form-group">#}
{#                <label  class="col-sm-2 control-label">{{ field.label }}</label>#}
{#                <div class="col-sm-10">#}
{#                    {{ field }}#}
{#                </div>#}
{#              </div>#}
{##}
{#            {% endfor %}#}
{#            <input type="submit" class="btn btn-info pull-right" value="下一步">#}
{#        </form>#}
{#        <div class="row">#}
{#            <div >#}
{#                <ul>#}
{#                    {% for k,v in msgs.items %}#}
{#                    <li>{{ k }}:{{ v }}</li>#}
{#                    {% endfor %}#}
{#                    <li><a href="http://localhost:8000/crm/customer/registration/{enroll_obj_id}//">跳转</a></li>#}
{#                </ul>#}
{#            </div>#}
{#        </div>#}
{#    </div>#}
    <form  class="form-horizontal" method="post">{% csrf_token %}
        <div class="page-header" style="color: #1b6d85">
        <h1>学生缴费记录 <small></small></h1>
        </div>
           <ul style="color: red">
               {% for error in errors %}
                <li>{{ error }}</li>
               {% endfor %}
           </ul>
          <div class="form-group">
            <label  class="col-sm-2 control-label">学生</label>
            <div class="col-sm-10">{{ enroll_obj.customer }}</div>
          </div>
           <div class="form-group">
            <label  class="col-sm-2 control-label">所参加活动</label>
            <div class="col-sm-10">{{ enroll_obj.enrolled_class }}</div>
          </div>
           <div class="form-group">
            <label  class="col-sm-2 control-label">缴费金额</label>
            <div class="col-sm-10">
                <input type="text" name="amount" placeholder="若无需缴费，则填0">
            </div>
          </div>
           <div class="form-group">
            <label  class="col-sm-2 control-label">负责人</label>

            <div class="col-sm-10">
                {{ enroll_obj.customer.consultant }}
            </div>
          </div>
           <input type="submit"   class="btn btn-success col-lg-offset-2  " value="提交">

    </form>
{% endblock %}

{% block bottom-js %}

{% endblock %}